package javat.util;

import static net.ftng.commons.lang.utils.PrintUtils.println;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import net.ftng.commons.lang.utils.MD5Utils;
import net.ftng.commons.lang.utils.StringUtils;

import org.junit.Test;

public class ListTest {

    @Test
    public void Iterator() {

        List<String> list = new ArrayList<String>();
        list.add("a");
        list.add("b");
        list.add("c");
        println(list);
        Iterator<String> iterator = list.iterator();
        while (iterator.hasNext()) {
            iterator.next();
            iterator.remove();
        }
        println(list);
        String randomString = StringUtils.getRandomString(8);
        println(randomString);
        println(MD5Utils.getMD5(randomString.concat("ftngqs110")));
    }
}
